package _08DeractorFactoryDesign;

public class Main08 {
    //借鉴：https://blog.csdn.net/pnjlc/article/details/52701929
    public static void main(String[] args) {
        Car car = new RunCar();
        Car flyCarDeractor = new FlyCarDeractor(car);
        flyCarDeractor.show();
        System.out.println("==================================");
        Car swimCarDeractor = new SwimCarDeractor(car);
        swimCarDeractor.show();
        System.out.println("===================================");
        Car flyCarDeractor1 = new FlyCarDeractor(swimCarDeractor);
        flyCarDeractor1.show();
    }
}
